﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace web1
{
    public partial class _2016020719_1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if ((username.Text == "admin") && (password.Text == "123456"))
                Response.Write("<script>alert('登陆成功！');location.href='main.aspx';</script>");
            else
                Response.Write("<script>alert('登陆失败！')</script>");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            username.Text= " ";
            password.Text = " ";
        }
    }
}